package org.loda.test;

import java.util.Arrays;
import java.util.List;

public class Tree {

	private String name;

	private boolean marked;

	private List<Tree> children;

	public Tree(String name, Tree... trees) {
		this.name = name;
		children = Arrays.asList(trees);
	}

	public List<Tree> getChildren() {
		return children;
	}

	public void setChildren(List<Tree> children) {
		this.children = children;
	}

	public void mark() {
		marked = true;
	}

	public boolean isMarked() {
		return marked;
	}

	@Override
	public String toString() {
		return name;
	}

}
